package com.lfnyxy.dao;

import com.lfnyxy.dto.DropVo;
import com.lfnyxy.entity.PolicyTypeEntity;
import com.lfnyxy.query.PolicyTypeQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by ted on 17/5/8.
 */
public interface PolicyTypeDao {
    int CreateItem(PolicyTypeEntity entity);

    int UpdateItem(PolicyTypeEntity entity);

    List <PolicyTypeEntity> QueryPageList(PolicyTypeQuery query);

    List <PolicyTypeEntity> QueryAll();

    int QueryPageListCount(PolicyTypeQuery query);

    int CheckIsExist(PolicyTypeEntity entity);

    PolicyTypeEntity QueryItem(int Id);

    int DeleteItem(int Id);

    List <DropVo> QueryDrop(PolicyTypeQuery query);
}